package cn.com.longfuinfo.wx.common;

import com.jfinal.kit.PropKit;

import cn.com.longfuinfo.api.bean.Token;

/**
 * 公众账号的系统参数配置
 * @author YAO.LONG
 */
public class FinalParam {

	public static String base;
	
	//微信配置信息
	public static final String APPID = "wxd8986c4f942c2c2e";
	public static final String APPSECRET = "eabab0a5506c80fe18be48f8b37a3778";
	public static final String Token = "weixinbe";
	//public static final String EncodingAESKey = "XZk4qHEh0RNPPKQ8DEql33uwecWZAsTOFMBXaiVUEKc";
	public static final String EncodingAESKey = "Ows4o7EwvmT4FrtuGnY9AqaamCXHYbk4miDIojlbixO";
	//微信卡券类型
	public static final String card_type1 = "GROUPON";//团购券
	public static final String card_type2 = "CASH";//代金券
	public static final String card_type3 = "DISCOUNT";//折扣券
	public static final String card_type4 = "GIFT";//礼品券
	public static final String card_type5 = "GENERAL_COUPON";//优惠券
	
	//微信OAuth2.0验证地址
	public static final String oauthUrl = "https://open.weixin.qq.com/connect/oauth2/authorize";
	
	 //本地服务器的地址
	public static final String url = PropKit.get("constants.url_prev");
	
	//微信图片放置的位置
	public static final String image_path="/upload/wechat/images/";
	
	
	/******************************   点击跳转  ACTION  地址配置 *****************************/
	
	//绑定页面路径 
	public static final String bind_page_path ="/wechat/server/wx_bind_page/indexMsg.do";
	
	//跳转页面时,未找到Openid 
	public static final String wx_user_404_path = "/wechat/server/wx_bind_page/user_404.do";
	
	//微信用户点击图文消息,跳转的内容信息页面
	public static final String show_view_url = "/wechat/server/wx_message/showViewData.do";
	
	//微信服务器推送过来的event事件类型  MsgType=event
	public static final String wx_event_subscribe="subscribe";//(订阅
	public static final String wx_event_unsubscribe="unsubscribe";//(取消订阅
	public static final String wx_event_click="CLICK"; //点击菜单拉取消息时的事件推送
	public static final String wx_event_view="VIEW"; //点击菜单跳转链接时的事件推送
	public static final String wx_msgtype_scan = "SCAN";//扫描二维码事件推送
	
	//回复、发送 消息类型 MsgType
	public static final String wx_msgtype_event="event";//微信推送事件(订阅，取消订阅，菜单点击)
	public static final String wx_msgtype_text="text";//微信推送普通文本消息
	public static final String wx_msgtype_image="image";//微信推送普通图片消息
	public static final String wx_msgtype_news = "news";//微信推送普通图文消息
	public static final String wx_msgtype_voice ="voice";
	
	private static Token access_token;
	
	public static Token getAccess_token() {
		return access_token;
	}

	public static void setAccess_token(Token access_token) {
		FinalParam.access_token = access_token;
	}
	
}
